package com.hbnu.annotation;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class User {
    private Annotation annotation;
    @Value("liushuo")
    private String name;
    @Value("123456")
    private String password;

    public Annotation getAnnotation() {
        return annotation;
    }

    public void setAnnotation(Annotation annotation) {
        this.annotation = annotation;
    }

    public String getName() {
        return name;
    }

    public void setName(@Value("liushuo")String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(@Value("123456") String password) {
        this.password = password;
    }
}
